package com.itheima.d5_generics;

import java.util.ArrayList;

public class Test2 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("abc");
        test(list.size());
        test(list.get(0));
    }

    public static <E> void test(E e){
        System.out.println(e);
    }
}
